/**
 * @ author: 汪孟苹
 */
define(["jquery","template","comm/page/page.servers","comm/page/page.tpl"],function($,template,$servers,tpl){
	var ui = {};

	var drawPage = function(data){
		return template("tpl_page",data);
	};
	/* 翻页初始化 */
	ui.init = function(options){
		var data = {
			rows: $servers.pageDataHandle(options.pagesAll,options.page)
		};
		$("#"+options.id).html(tpl.init());
		var h = drawPage(data);
		$("#"+options.id).html(h);
	}

	return ui;
});
